
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module Statistics</title>
<meta charset="utf-8">
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>Statistics</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:///C:/lp1415-5958-3958/src/statistics.py">c:\lp1415-5958-3958\src\statistics.py</a></font></td></tr></table>
    <p><tt>Tema&nbsp;-&nbsp;Linguagens&nbsp;de&nbsp;Programação&nbsp;Dinâmicas<br>
Trabalho&nbsp;de&nbsp;Python&nbsp;á&nbsp;Discíplina&nbsp;-&nbsp;Linguagens&nbsp;de&nbsp;Programação<br>
&nbsp;<br>
<a href="#Statistics">Statistics</a>.py&nbsp;tem&nbsp;como&nbsp;função&nbsp;efectuar&nbsp;a&nbsp;ligação&nbsp;a&nbsp;base&nbsp;de&nbsp;Dados&nbsp;<br>
Depois&nbsp;de&nbsp;efectuar&nbsp;a&nbsp;ligação&nbsp;a&nbsp;Base&nbsp;de&nbsp;dados,&nbsp;realiza&nbsp;a&nbsp;leitura&nbsp;dos&nbsp;mesmos&nbsp;passandos&nbsp;por&nbsp;filtros&nbsp;<br>
A&nbsp;cada&nbsp;função&nbsp;da&nbsp;classe,&nbsp;possui&nbsp;filtros&nbsp;que&nbsp;retornam&nbsp;os&nbsp;valores&nbsp;de&nbsp;cada&nbsp;coluna&nbsp;da&nbsp;Base&nbsp;de&nbsp;Dados</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="FixTk.html">FixTk</a><br>
<a href="Tkinter.html">Tkinter</a><br>
<a href="os.html">os</a><br>
</td><td width="25%" valign=top><a href="re.html">re</a><br>
<a href="sqlalchemy.html">sqlalchemy</a><br>
<a href="sys.html">sys</a><br>
</td><td width="25%" valign=top><a href="tkMessageBox.html">tkMessageBox</a><br>
<a href="_tkinter.html">_tkinter</a><br>
<a href="xlrd.html">xlrd</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="Statistics.html#Statistics">Statistics</a>
</font></dt></dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="Statistics">class <strong>Statistics</strong></a></font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>classe&nbsp;responsavel&nbsp;por&nbsp;criar&nbsp;as&nbsp;estatistica&nbsp;do&nbsp;programa<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Statistics-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Método&nbsp;para&nbsp;instanciar&nbsp;obetos&nbsp;de&nbsp;ligação&nbsp;a&nbsp;base&nbsp;de&nbsp;dados,&nbsp;para&nbsp;que&nbsp;não&nbsp;seja&nbsp;necessário&nbsp;de&nbsp;estar&nbsp;sempre&nbsp;a&nbsp;<br>
criar&nbsp;ligações&nbsp;em&nbsp;novos&nbsp;métodos&nbsp;da&nbsp;classe</tt></dd></dl>

<dl><dt><a name="Statistics-getAno"><strong>getAno</strong></a>(self, id)</dt><dd><tt>Método&nbsp;que&nbsp;returna&nbsp;todos&nbsp;os&nbsp;dados&nbsp;da&nbsp;coluna&nbsp;(Ano)&nbsp;que&nbsp;se&nbsp;encontra&nbsp;na&nbsp;tabela&nbsp;da&nbsp;Base&nbsp;de&nbsp;Dados,&nbsp;para&nbsp;visualização&nbsp;dos&nbsp;mesmos&nbsp;<br>
@Param&nbsp;Return&nbsp;o&nbsp;ano&nbsp;através&nbsp;do&nbsp;id&nbsp;que&nbsp;recebe&nbsp;como&nbsp;parametro<br>
@Param&nbsp;id&nbsp;-&gt;&nbsp;id&nbsp;do&nbsp;ano&nbsp;na&nbsp;base&nbsp;de&nbsp;dados</tt></dd></dl>

<dl><dt><a name="Statistics-getInflacao"><strong>getInflacao</strong></a>(self, id)</dt><dd><tt>Método&nbsp;que&nbsp;returna&nbsp;todos&nbsp;os&nbsp;dados&nbsp;da&nbsp;coluna&nbsp;(Taxa&nbsp;de&nbsp;Inflação)&nbsp;que&nbsp;se&nbsp;encontra&nbsp;na&nbsp;tabela&nbsp;da&nbsp;Base&nbsp;de&nbsp;Dados,&nbsp;para&nbsp;visualização&nbsp;dos&nbsp;mesmos&nbsp;<br>
@Param&nbsp;Return&nbsp;a&nbsp;inflacao&nbsp;através&nbsp;do&nbsp;id&nbsp;que&nbsp;recebe&nbsp;como&nbsp;parametro<br>
@Param&nbsp;id&nbsp;-&gt;&nbsp;id&nbsp;do&nbsp;ano&nbsp;na&nbsp;base&nbsp;de&nbsp;dados</tt></dd></dl>

<dl><dt><a name="Statistics-getIpc_global"><strong>getIpc_global</strong></a>(self, id)</dt><dd><tt>Método&nbsp;que&nbsp;returna&nbsp;todos&nbsp;os&nbsp;dados&nbsp;da&nbsp;coluna&nbsp;(IPC_Global)&nbsp;que&nbsp;se&nbsp;encontra&nbsp;na&nbsp;tabela&nbsp;da&nbsp;Base&nbsp;de&nbsp;Dados,&nbsp;para&nbsp;visualização&nbsp;dos&nbsp;mesmos&nbsp;<br>
@Param&nbsp;Return&nbsp;o&nbsp;ipc&nbsp;global&nbsp;através&nbsp;do&nbsp;id&nbsp;que&nbsp;recebe&nbsp;como&nbsp;parametro<br>
@Param&nbsp;id&nbsp;-&gt;&nbsp;id&nbsp;do&nbsp;ano&nbsp;na&nbsp;base&nbsp;de&nbsp;dados</tt></dd></dl>

<dl><dt><a name="Statistics-getPib"><strong>getPib</strong></a>(self, id)</dt><dd><tt>Método&nbsp;que&nbsp;returna&nbsp;todos&nbsp;os&nbsp;dados&nbsp;da&nbsp;coluna&nbsp;(Produto&nbsp;Interno&nbsp;Bruto)&nbsp;que&nbsp;se&nbsp;encontra&nbsp;na&nbsp;tabela&nbsp;da&nbsp;Base&nbsp;de&nbsp;Dados,&nbsp;para&nbsp;visualização&nbsp;dos&nbsp;mesmos&nbsp;<br>
@Param&nbsp;Return&nbsp;a&nbsp;PIB&nbsp;através&nbsp;do&nbsp;id&nbsp;que&nbsp;recebe&nbsp;como&nbsp;parametro<br>
@Param&nbsp;id&nbsp;-&gt;&nbsp;id&nbsp;do&nbsp;ano&nbsp;na&nbsp;base&nbsp;de&nbsp;dados</tt></dd></dl>

<dl><dt><a name="Statistics-getRem_disp"><strong>getRem_disp</strong></a>(self, id)</dt><dd><tt>Método&nbsp;que&nbsp;returna&nbsp;todos&nbsp;os&nbsp;dados&nbsp;da&nbsp;coluna&nbsp;(Remuneração&nbsp;Disponivel)&nbsp;que&nbsp;se&nbsp;encontra&nbsp;na&nbsp;tabela&nbsp;da&nbsp;Base&nbsp;de&nbsp;Dados,&nbsp;para&nbsp;visualização&nbsp;dos&nbsp;mesmos&nbsp;<br>
@Param&nbsp;Return&nbsp;a&nbsp;Remuneração&nbsp;Disponivel&nbsp;através&nbsp;do&nbsp;id&nbsp;que&nbsp;recebe&nbsp;como&nbsp;parametro<br>
@Param&nbsp;id&nbsp;-&gt;&nbsp;id&nbsp;do&nbsp;ano&nbsp;na&nbsp;base&nbsp;de&nbsp;dados</tt></dd></dl>

<dl><dt><a name="Statistics-getRem_nac"><strong>getRem_nac</strong></a>(self, id)</dt><dd><tt>Método&nbsp;que&nbsp;returna&nbsp;todos&nbsp;os&nbsp;dados&nbsp;da&nbsp;coluna&nbsp;(Remuneração&nbsp;Nacional)&nbsp;que&nbsp;se&nbsp;encontra&nbsp;na&nbsp;tabela&nbsp;da&nbsp;Base&nbsp;de&nbsp;Dados,&nbsp;para&nbsp;visualização&nbsp;dos&nbsp;mesmos&nbsp;<br>
@Param&nbsp;Return&nbsp;a&nbsp;Remuneração&nbsp;Nacional&nbsp;através&nbsp;do&nbsp;id&nbsp;que&nbsp;recebe&nbsp;como&nbsp;parametro<br>
@Param&nbsp;id&nbsp;-&gt;&nbsp;id&nbsp;do&nbsp;ano&nbsp;na&nbsp;base&nbsp;de&nbsp;dados</tt></dd></dl>

<dl><dt><a name="Statistics-getRemu_capital"><strong>getRemu_capital</strong></a>(self, id)</dt><dd><tt>Método&nbsp;que&nbsp;returna&nbsp;todos&nbsp;os&nbsp;dados&nbsp;da&nbsp;coluna&nbsp;(Remunerações&nbsp;Capital&nbsp;anual&nbsp;per&nbsp;capita)&nbsp;que&nbsp;se&nbsp;encontra&nbsp;na&nbsp;tabela&nbsp;da&nbsp;Base&nbsp;de&nbsp;Dados,&nbsp;para&nbsp;visualização&nbsp;dos&nbsp;mesmos&nbsp;<br>
@Param&nbsp;Return&nbsp;a&nbsp;Remunerações&nbsp;Capital&nbsp;através&nbsp;do&nbsp;id&nbsp;que&nbsp;recebe&nbsp;como&nbsp;parametro<br>
@Param&nbsp;id&nbsp;-&gt;&nbsp;id&nbsp;do&nbsp;ano&nbsp;na&nbsp;base&nbsp;de&nbsp;dados</tt></dd></dl>

<dl><dt><a name="Statistics-getRum_maxima"><strong>getRum_maxima</strong></a>(self, id)</dt><dd><tt>Método&nbsp;que&nbsp;returna&nbsp;todos&nbsp;os&nbsp;dados&nbsp;da&nbsp;coluna&nbsp;(Remuneração&nbsp;Máxima)&nbsp;que&nbsp;se&nbsp;encontra&nbsp;na&nbsp;tabela&nbsp;da&nbsp;Base&nbsp;de&nbsp;Dados,&nbsp;para&nbsp;visualização&nbsp;dos&nbsp;mesmos&nbsp;<br>
@Param&nbsp;Return&nbsp;a&nbsp;Remuneração&nbsp;Máxima&nbsp;através&nbsp;do&nbsp;id&nbsp;que&nbsp;recebe&nbsp;como&nbsp;parametro<br>
@Param&nbsp;id&nbsp;-&gt;&nbsp;id&nbsp;do&nbsp;ano&nbsp;na&nbsp;base&nbsp;de&nbsp;dados</tt></dd></dl>

<dl><dt><a name="Statistics-getRum_minima"><strong>getRum_minima</strong></a>(self, id)</dt><dd><tt>Método&nbsp;que&nbsp;returna&nbsp;todos&nbsp;os&nbsp;dados&nbsp;da&nbsp;coluna&nbsp;(Remuneração&nbsp;Minima)&nbsp;que&nbsp;se&nbsp;encontra&nbsp;na&nbsp;tabela&nbsp;da&nbsp;Base&nbsp;de&nbsp;Dados,&nbsp;para&nbsp;visualização&nbsp;dos&nbsp;mesmos&nbsp;<br>
@Param&nbsp;Return&nbsp;a&nbsp;Remuneração&nbsp;Minima&nbsp;através&nbsp;do&nbsp;id&nbsp;que&nbsp;recebe&nbsp;como&nbsp;parametro<br>
@Param&nbsp;id&nbsp;-&gt;&nbsp;id&nbsp;do&nbsp;ano&nbsp;na&nbsp;base&nbsp;de&nbsp;dados</tt></dd></dl>

</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>ACTIVE</strong> = 'active'<br>
<strong>ALL</strong> = 'all'<br>
<strong>ANCHOR</strong> = 'anchor'<br>
<strong>ARC</strong> = 'arc'<br>
<strong>BASELINE</strong> = 'baseline'<br>
<strong>BEVEL</strong> = 'bevel'<br>
<strong>BOTH</strong> = 'both'<br>
<strong>BOTTOM</strong> = 'bottom'<br>
<strong>BROWSE</strong> = 'browse'<br>
<strong>BUTT</strong> = 'butt'<br>
<strong>CASCADE</strong> = 'cascade'<br>
<strong>CENTER</strong> = 'center'<br>
<strong>CHAR</strong> = 'char'<br>
<strong>CHECKBUTTON</strong> = 'checkbutton'<br>
<strong>CHORD</strong> = 'chord'<br>
<strong>COMMAND</strong> = 'command'<br>
<strong>CURRENT</strong> = 'current'<br>
<strong>DISABLED</strong> = 'disabled'<br>
<strong>DOTBOX</strong> = 'dotbox'<br>
<strong>E</strong> = 'e'<br>
<strong>END</strong> = 'end'<br>
<strong>EW</strong> = 'ew'<br>
<strong>EXCEPTION</strong> = 8<br>
<strong>EXTENDED</strong> = 'extended'<br>
<strong>FALSE</strong> = 0<br>
<strong>FIRST</strong> = 'first'<br>
<strong>FLAT</strong> = 'flat'<br>
<strong>File_xls</strong> = &lt;xlrd.book.Book object&gt;<br>
<strong>GROOVE</strong> = 'groove'<br>
<strong>HIDDEN</strong> = 'hidden'<br>
<strong>HORIZONTAL</strong> = 'horizontal'<br>
<strong>INSERT</strong> = 'insert'<br>
<strong>INSIDE</strong> = 'inside'<br>
<strong>LAST</strong> = 'last'<br>
<strong>LEFT</strong> = 'left'<br>
<strong>MITER</strong> = 'miter'<br>
<strong>MOVETO</strong> = 'moveto'<br>
<strong>MULTIPLE</strong> = 'multiple'<br>
<strong>N</strong> = 'n'<br>
<strong>NE</strong> = 'ne'<br>
<strong>NO</strong> = 0<br>
<strong>NONE</strong> = 'none'<br>
<strong>NORMAL</strong> = 'normal'<br>
<strong>NS</strong> = 'ns'<br>
<strong>NSEW</strong> = 'nsew'<br>
<strong>NUMERIC</strong> = 'numeric'<br>
<strong>NW</strong> = 'nw'<br>
<strong>OFF</strong> = 0<br>
<strong>ON</strong> = 1<br>
<strong>OUTSIDE</strong> = 'outside'<br>
<strong>PAGES</strong> = 'pages'<br>
<strong>PIESLICE</strong> = 'pieslice'<br>
<strong>PROJECTING</strong> = 'projecting'<br>
<strong>RADIOBUTTON</strong> = 'radiobutton'<br>
<strong>RAISED</strong> = 'raised'<br>
<strong>READABLE</strong> = 2<br>
<strong>RIDGE</strong> = 'ridge'<br>
<strong>RIGHT</strong> = 'right'<br>
<strong>ROUND</strong> = 'round'<br>
<strong>S</strong> = 's'<br>
<strong>SCROLL</strong> = 'scroll'<br>
<strong>SE</strong> = 'se'<br>
<strong>SEL</strong> = 'sel'<br>
<strong>SEL_FIRST</strong> = 'sel.first'<br>
<strong>SEL_LAST</strong> = 'sel.last'<br>
<strong>SEPARATOR</strong> = 'separator'<br>
<strong>SINGLE</strong> = 'single'<br>
<strong>SOLID</strong> = 'solid'<br>
<strong>SUNKEN</strong> = 'sunken'<br>
<strong>SW</strong> = 'sw'<br>
<strong>StringTypes</strong> = (&lt;type 'str'&gt;, &lt;type 'unicode'&gt;)<br>
<strong>TOP</strong> = 'top'<br>
<strong>TRUE</strong> = 1<br>
<strong>TclVersion</strong> = 8.5<br>
<strong>TkVersion</strong> = 8.5<br>
<strong>UNDERLINE</strong> = 'underline'<br>
<strong>UNITS</strong> = 'units'<br>
<strong>VERTICAL</strong> = 'vertical'<br>
<strong>W</strong> = 'w'<br>
<strong>WORD</strong> = 'word'<br>
<strong>WRITABLE</strong> = 4<br>
<strong>X</strong> = 'x'<br>
<strong>Y</strong> = 'y'<br>
<strong>YES</strong> = 1<br>
<strong>__author__</strong> = 'Miguel Fialho, N<font color="#c040c0">\xc2\xba</font> 5958 - Pedro Serrano, N<font color="#c040c0">\xc2\xba</font> 3958'<br>
<strong>__copyright__</strong> = 'Copyright 2014 - Miguel Fialho / Pedro Serrano'<br>
<strong>__credits__</strong> = ''<br>
<strong>__email__</strong> = 'mF200_5@hotmail.com'<br>
<strong>__license__</strong> = 'GPL'<br>
<strong>__maintainer__</strong> = '1.0'<br>
<strong>__status__</strong> = ''<br>
<strong>filename</strong> = 'IPC_Portugal_1977_2013.xls'<br>
<strong>sheet</strong> = &lt;xlrd.sheet.Sheet object&gt;<br>
<strong>wantobjects</strong> = 1</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#7799ee">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
    
<tr><td bgcolor="#7799ee"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%">Miguel&nbsp;Fialho,&nbsp;Nº&nbsp;5958&nbsp;-&nbsp;Pedro&nbsp;Serrano,&nbsp;Nº&nbsp;3958</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#7799ee">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Credits</strong></big></font></td></tr>
    
<tr><td bgcolor="#7799ee"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"></td></tr></table>
</body></html>